Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPersistentObject


Externalize

The Externalize method stores the data needed to restore this persistent object to its current state.

void Externalize ();
DISCUSSION
Your part calls this method of a persistent object (for example, a part or frame) to write that object's data to persistent storage. This method writes the object's persistent state to the properties and values in the object's storage unit. It must write sufficient information to allow the object's InitClassFromStorage method to restore the object to its current state; for example, a part's Externalize method must write the information needed by its InitPartFromStorage method.

OVERRIDING
Every subclass of ODPersistentObject must override the Externalize method. Your subclass of ODPart overrides this method if your part maintains persistent content. The override method must call its inherited Externalize method at the beginning of its implementation.

SEE ALSO
The ODPersistentObject::InitPersistentObject method (page 560).
The ODPersistentObject::InitPersistentObjectFromStorage method (page 561).
The ODPart class (page 459).
"The Externalize Method" on page 98 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"The Externalize Method" on page 297 in OpenDoc Programmer's Guide.
"Writing Links in Externalize" on page 388 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help